//楼盘审核api
import {apiRequestList} from "@/common/axios"
import tool from "@/common/tool.js"
let userMess = tool.getStorage("userMess"),mess = JSON.parse(userMess),{appId,userId,workNo} = mess;

const cityList = '/dt-business/base/city/page',//城市筛选条件
      batchcreate = '/dt-business/base/city/plate/page',//街道板块信息
      basedata = '/dt-business/building/agg/basedata',//楼盘列表
      checkBuildingList = '/dt-business/building/agg/building/list/page',//楼盘审核列表
      buildingCheck = '/dt-business/building/agg/audit/get',//楼盘审核
      batchchcreate = '/dt-business/base/city/plate/batchcreate', //街道板块信息
      logList = '/dt-business/building/audit/operatelog/page',//审核日志
      logUserList = '/dt-business/building/audit/operatelog/users',//人员列表
      initStandingBook = '/dt-business/standingbook/building/initStandingBook'//初始化台账
export const getCityList = (params={})=>{
    params = Object.assign(params,{appId:appId || currentId,userId})
    return apiRequestList.$post(cityList,params)
}
export const getCheckBuildingList = (params={})=>{
    params = Object.assign(params,{appId:appId || currentId,userId})
    return apiRequestList.$post(checkBuildingList,params)
}
export const getBuildingCheck = (params={})=>{
    params = Object.assign(params,{appId:appId || currentId, updaterId:userId})
    return apiRequestList.$post(buildingCheck,params)
}
export const getBatchchcreate = (params={})=>{
    params = Object.assign(params,{appId:appId || currentId})
    return apiRequestList.$post(batchchcreate,params)
}
export const getBatchcreate= (params={})=>{
    params = Object.assign(params,{appId:appId || currentId})
    return apiRequestList.$post(batchcreate,params)
}
export const getBasedata= (params={})=>{
    params = Object.assign(params,{appId:appId || currentId})
    return apiRequestList.$post(basedata,params)
}
export const getLogList= (params={})=>{
    params = Object.assign(params,{appId:appId || currentId})
    return apiRequestList.$post(logList,params)
}
export const getLogUserList= (params={})=>{
    params = Object.assign(params,{appId:appId || currentId})
    return apiRequestList.$post(logUserList,params)
}
export const getInitStandingBook = (params={})=>{
  params = Object.assign(params,{appId:appId || currentId})
  return apiRequestList.$post(initStandingBook,params)
}
//生成静态页面
export const getBuildingHtml = (params={})=>apiRequestList.$post('/dt-business/mb/api/bg/buildBuilding',params)

